/*
 *    Copyright (c) 2015
 *    Copyright 2021 Institute of Software Chinese Academy of Sciences, ISRC

 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */
package com.huawei.mytestapp.slice;

import com.huawei.mytestapp.ResourceTable;

import com.huawei.mytestapp.lib.PinchImageViewnew;
import com.huawei.mytestapp.lib.test;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.colors.RgbColor;
import ohos.agp.components.DirectionalLayout;
import ohos.agp.components.element.ShapeElement;

public class MainAbilitySlice extends AbilitySlice {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        DirectionalLayout directionalLayout = new DirectionalLayout(this);
        PinchImageViewnew pinchImageView = new PinchImageViewnew(this);
//
//
        pinchImageView.setPixelMap(this, ResourceTable.Media_1111);
//        pinchImageView.setBound(500,500);
//        pinchImageView.setPosition(0,0);
//        test t = new test(this);
//        t.setImageAndDecodeBounds(ResourceTable.Media_icon);


        directionalLayout.addComponent(pinchImageView);
        setUIContent(directionalLayout);
    }

    @Override
    public void onActive() {
        super.onActive();
    }

    @Override
    public void onForeground(Intent intent) {
        super.onForeground(intent);
    }
}
